/*
 * @author: jianghaiyang807
 * @Date: 2016-10-26
 */

//加载框
export const SHOW_LOADING = 'SHOW_LOADING'
export const showLoading = ({commit}) => {
  commit(SHOW_LOADING)
}
export const HIDE_LOADING = 'HIDE_LOADING'
export const hideLoading = ({commit}) => {
  commit(HIDE_LOADING)
}

//alert弹出框
export const SHOW_ALERT = 'SHOW_ALERT'
export const showAlert = ({commit}, str) => {
  commit(SHOW_ALERT, str)
}
export const HIDE_ALERT = 'HIDE_ALERT'
export const hideAlert = ({commit}) => {
  commit(HIDE_ALERT)
}
